/* eslint-disable @typescript-eslint/no-explicit-any */
import { withInstall } from '@ibiz-template/vue3-util';
import { registerControlProvider } from '@ibiz-template/runtime';
import { TabExpPanelDropdownControl } from './tab-exp-panel-dropdown';
import { TabExpPanelDropdownProvider } from './tab-exp-panel-dropdown.provider';

export const IBizTabExpPanelDropdownControl = withInstall(
  TabExpPanelDropdownControl,
  (_v: any) => {
    _v.component(TabExpPanelDropdownControl.name, TabExpPanelDropdownControl);
    registerControlProvider(
      'CUSTOM_TABEXPPANEL_DROPDOWN',
      () => new TabExpPanelDropdownProvider(),
    );
  },
);
